package zh.javadesign.抽象工厂.impl01.factory.impl;


import zh.javadesign.抽象工厂.impl01.factory.ICacheAdapter;
import zh.javadesign.抽象工厂.scene.matter.IIR;

import java.util.concurrent.TimeUnit;

public class IIRCacheAdapter implements ICacheAdapter {

	private IIR iir = new IIR();

	@Override
	public String get(String key) {
		return iir.get(key);
	}

	@Override
	public void set(String key, String value) {
		iir.set(key, value);
	}

	@Override
	public void set(String key, String value, long timeout, TimeUnit timeUnit) {
		iir.setExpire(key, value, timeout, timeUnit);
	}

	@Override
	public void del(String key) {
		iir.del(key);
	}

}
